@import "./animate.less";

.vcp-layer{
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  color: #fff;
  font-weight: normal;
  div {
    user-select: none;
  }
  svg {
    user-select: none;
  }
}

.vcp-icon{
  display: inline-block;
}
.vue-core-video-player-control {
  display: inline-block;
  position: relative;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  font-size: 13px;
  color: #fff;
}
.btn-control-panel{
  position: absolute;
  left: 50%;
  bottom: 54px;
  padding: 20px;
  min-height: 30px;
  box-sizing: border-box;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, .7);
  border-radius: 4px;
  font-weight: 500;
  ul,li{
    margin: 0;
    padding: 0;
    text-align: center;
  }
  ul li {
    list-style: none;
    height: 30px;
    line-height: 30px;
    display: flex;
    align-items: center;
    text-align: left;
    .item-name{
      flex: 1;
      align-self: flex-start;
    }
    .item-control{
      display: flex;
      flex: 1;
      text-align: right;
      line-height: 30px;
      align-items: center;
      justify-content: flex-end;
      cursor: pointer;
    }
  }
}
.btn-control{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
  &:focus {
    background: none;
    outline-style: none;
  }
  .tips {
    display: none;
    position: absolute;
    min-width: 30px;
    padding: 4px;
    border-radius: 2px;
    bottom: 54px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: bold;
    color: rgba(255, 255, 255, .7);
    background-color: rgba(0,0,0, .7);
    text-align: center;
    line-height: 1.2;
    word-break: keep-all;
    word-wrap: no-wrap;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .15s ease-in;
  }
  svg {
    opacity: .85;
    transition: opacity .1s ease;
  }
  &:hover{
    svg {
      opacity: 1;
    }
    .tips { 
      display: block;
      opacity: 1;
    }
  }
  
}
